home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / X11 / xarchie-2.0.9 / fchooser.h < prev    next >
C/C++ Source or Header  |  1995-06-18  |  988b  |  49 lines

  1. /*
  2.  * fchooser.c : Xarchie interface to the FileChooser
  3.  *
  4.  * George Ferguson, ferguson@cs.rochester.edu, 23 Apr 1993.
  5.  */
  6.  
  7. #if NeedFunctionPrototypes
  8. struct _FileChooserInfo;
  9. #endif
  10.  
  11. typedef void (*FileChooserOkProc)(
  12. #if NeedFunctionPrototypes
  13.     struct _FileChooserInfo *fcinfo,
  14.     char *filename,
  15.     XtPointer client_data
  16. #endif
  17. );
  18.  
  19. typedef void (*FileChooserCancelProc)(
  20. #if NeedFunctionPrototypes
  21.     struct _FileChooserInfo *fcinfo,
  22.     XtPointer client_data
  23. #endif
  24. );
  25.  
  26. typedef struct _FileChooserInfo {
  27.     Widget shell;
  28. #ifdef FILECHOOSER
  29.     Widget fcw;
  30. #endif
  31.     Widget text;
  32.     Widget okButton,cancelButton;
  33.     FileChooserOkProc okCallback;
  34.     FileChooserCancelProc cancelCallback;
  35.     XtPointer client_data;
  36. } FileChooserInfo;
  37.  
  38. extern FileChooserInfo *
  39. createFileChooser(
  40. #if NeedFunctionPrototypes
  41.     Widget shell,
  42.     Widget parent,
  43.     char *basename,
  44.     FileChooserOkProc okCallback,
  45.     FileChooserCancelProc cancelCallback,
  46.     XtPointer client_data
  47. #endif
  48. );
  49.